package com.capinfo.accounting.web;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.capinfo.accumulation.model.accounting.mybist.GB_JZPZXX;
import com.capinfo.accumulation.parameter.accounting.DataGrid;
import com.capinfo.accumulation.service.accounting.mybits.GB_JZPZXXServiceI;
import com.capinfo.accumulation.model.pagemodel.Json;
import com.capinfo.components.security.web.utils.WebRequestUtils;
import org.springframework.web.context.request.NativeWebRequest;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 *  @author zxl
 */
@Controller
@RequestMapping("/business/accounting/gB_JZPZXX")
public class GB_JZPZXXController extends BaseController {
	@Autowired
	public GB_JZPZXXServiceI gB_JZPZXXService;

	@RequestMapping("/dataGrid.shtml")
	@ResponseBody
	public DataGrid dataGrid(@RequestParam  Map param) {
		if(param.get("PZLB")!="" && param.get("PZLB")!=null){
			param.put("PZLB", param.get("PZLB"));
		}
		if( param.get("ZTBH")!="" && param.get("ZTBH")!=null){
			param.put("ZTBH", param.get("ZTBH"));
		}
		if(param.get("ZDRQ_EQ_DATE")!="" && param.get("ZDRQ_EQ_DATE")!=null){
			param.put("ZDRQ_EQ_DATE", param.get("ZDRQ_EQ_DATE"));
		}
		if(param.get("HSDW")!=null&& param.get("HSDW")!=""){
			param.put("HSDW", param.get("HSDW"));
		}
		return gB_JZPZXXService.findbyByGrid(param);
	}
}
